package com.baway.common.adapter

import com.baway.common.entity.BannerEntity
import com.baway.image.glide.GlideImgLoader
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder

/**
 * Author: Jason Zhang
 * Date: 2025/8/23
 * Desc:
 */
class ImageBannerAdapter(list: MutableList<BannerEntity>): BannerImageAdapter<BannerEntity>(list) {

    override fun onBindView(holder: BannerImageHolder, data: BannerEntity, position: Int, size: Int) {
      GlideImgLoader.loadResImage(holder.imageView, data.resId, holder.imageView)
    }


}